package com.itheima.ssm.controller;

import com.itheima.ssm.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/account")
public class Account {

    @Autowired
    private AccountService accountService;

    @RequestMapping(value = "/findAccount")
    public String findAccountById()
    {
        com.itheima.ssm.domain.Account account = accountService.findById(1);
        System.out.println(account);
        return "success";
    }
}
